dsh-git-worktree: Letting Agents Preview First in an Independent Git Worktree, Then Confirm and Save

`dsh-git-worktree` is a community experimental plugin for DeepSeek Harness, designed to address the chaos and contention issues caused by agents directly modifying local code repositories. The plugin adopts a "construction and delivery separation" model, allowing agents to execute tasks and tests in isolated Git Worktrees, thereby avoiding contamination of the local checkout. The core workflow includes: agents modify code in isolated environments; users can view safe, revertible local effects through "Local Preview"; once confirmed, the Host saves only the incremental changes from the current task and creates a single commit, ensuring a clean delivery without unrelated modifications. The plugin supports parallel work across multiple Worktrees, but a local project accepts only one PR at a time.

Read More